public class demo15 {
    public static void main(String[] args) throws InterruptedException {
        Thread t=new Thread(()->{
        for(int i=0;i<3;i++){
            System.out.println("hello run");
        }
        });
        System.out.println(t.getState());
        t.start();
        Thread.sleep(6000);
        System.out.println(t.getState());
    }
}
